package com.cychat.mall.service;

import com.Cychat.commons.entity.pojo.Favorite;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface FavoriteService extends IService<Favorite> {
    void addFavorite(Long userId, Integer productId);

    boolean isFavorite(Long userId, Integer productId);

    void deleteFavorite(Long userId, Integer productId);

    List<Favorite> getFavoriteList(Long userId);

    void addToCart(Long userId, Integer productId);
}
